home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
bjack.swf
/
scripts
/
DefineButton2_101
/
BUTTONCONDACTION on(release).as
next >
Wrap
Text File
|
2006-01-17
|
697b
|
31 lines
on(release){
if(eval("..:test") == "0")
{
if(eval("_level0:Credit") >= "5")
{
tellTarget("_level0")
{
gotoAndStop("Rewind");
play();
}
tellTarget("_level0/ButControls")
{
gotoAndStop("Go");
}
set("..:test","1");
}
else if(eval("_level0:Credit") == "0")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Bankrot");
}
}
}
if(eval("_level0:Credit") >= "5")
{
set("_level0:Bet",eval("_level0:Bet") + "5");
set("_level0:Credit",eval("_level0:Credit") - "5");
}
}